package day6;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        CustomerBiz biz = new CustomerBiz();
        Scanner input = new Scanner(System.in);
        while(true) {
            System.out.print("请输入客户的姓名:");
            String name = input.next();
            boolean res = biz.addName(name);
            if(res) {
                System.out.print("继续输入吗（y/n）？");
                if(input.next().equals("n")) break;
            }
        }
        // 打印列表
        biz.showNames();
    }
}


